<?php

/*------------------------------------------------------------------------

# JA Opal for Joomla 1.5 - Version 1.0 - Licence Owner JA108425

# ------------------------------------------------------------------------

# Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved.

# @license - Copyrighted Commercial Software

# Author: J.O.O.M Solutions Co., Ltd

# Websites:  http://www.joomlart.com -  http://www.joomlancers.com

# This file may not be redistributed in whole or significant part.

-------------------------------------------------------------------------*/



// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );



include_once (dirname(__FILE__).DS.'ja_vars_1.5.php');



?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">



<head>

<jdoc:include type="head" />

<?php JHTML::_('behavior.mootools'); ?>

<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" />



<script language="javascript" type="text/javascript">

	var siteurl = '<?php echo $tmpTools->baseurl();?>';

	var tmplurl = '<?php echo $tmpTools->templateurl();?>';

</script>



<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script>

<!-- js for dragdrop -->



<!-- Menu head -->

<?php if ($jamenu) $jamenu->genMenuHead(); ?>

<link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>.css" rel="stylesheet" type="text/css" />



<!--[if lte IE 6]>

<style type="text/css">

img {border: none;}

<?php if ($iebgpng) : ?>

#ja-bdbg {

	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $tmpTools->templateurl();?>/images/background/<?php echo $bgimg;?>', sizingMethod='image');

}

body {

	background-image: none!important;

}

<?php endif; ?>

</style>

<![endif]-->



<?php if ($tmpTools->isIE()) {  ?>



<link href="<?php echo $tmpTools->templateurl(); ?>/css/ie.php" rel="stylesheet" type="text/css" />

<link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>-ie.php" rel="stylesheet" type="text/css" />

<!--[if lte IE 6]>

<script type="text/javascript">

window.addEvent ('load', makeTransBG);

function makeTransBG() {

makeTransBg($$('img'));

}

</script>

<![endif]-->

<?php } ?>

<?php 

	$mainbg = '';

	if ($tmpTools->getParam('ja_bgimg')) {

		$mainbg = 'class="ja-mainbg"';

	}

?>

</head>

<body id="bd" class="<?php echo $tmpTools->getParam(JA_TOOL_LAYOUT);?> <?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>"<?php //echo $bodybg;?>>



<div id="ja-wrapper" <?php echo $mainbg;?>>

<a name="Top" id="Top"></a>

<?php if ($iebgpng) : ?>

<div id="ja-bdbgwrap" class="wrap">

	<div id="ja-bdbg"></div>

</div>

<?php endif; ?>



<!-- HEADER -->

<div id="ja-header" class="wrap">

  <div class="main clearfix">

  

  	<?php 

  	$siteName = $tmpTools->sitename(); 

  	if ($tmpTools->getParam('logoType')=='image') { ?>

  	<h1 class="logo">

  		<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>

  	</h1>

  	<?php } else { 

  	$logoText = (trim($tmpTools->getParam('logoText'))=='') ? $config->sitename : $tmpTools->getParam('logoText');

  	$sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText');	?>

  	<div class="logo-text">

  		<p class="site-slogan"><?php echo $sloganText;?></p>

  		<h1>

  			<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a>	

  		</h1>

  	</div>

  	<?php } ?>

  	

  	<?php if ( $this->countModules('banner') ) { ?>

  	 <div id="ja-banner">

  	   <jdoc:include type="modules" name="banner" style="raw" />

  	 </div>

  	<?php } ?>

  

  </div>

</div>

<!-- //HEADER -->



<!-- MAIN NAVIGATION -->

<div id="ja-mainnav" class="wrap">  	

  <div class="main">

    <div class="inner clearfix">

  

  	<ul class="no-display">

  		<li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>

  	</ul>

  

		<?php if ($jamenu) $jamenu->genMenu (0); ?>

		

		<?php if($this->countModules('ja-login')) : ?>

    <div id="ja-headtools" class="ja-headtool">

	    <ul> 			

  			<jdoc:include type="modules" name="ja-login" />

  		</ul>

		</div>

  	<?php endif; ?>

		

	 </div>

	</div>

</div>

<!-- //MAIN NAVIGATION -->



<?php if ($this->countModules('ja-slideshow') && $this->countModules('user5') ) { ?>

<!-- TOP SPOTLIGHT -->

<div id="ja-topsl" class="wrap">

  <div class="main">

    <div class="inner clearfix">

  

    <div id="ja-slideshow">

      <jdoc:include type="modules" name="ja-slideshow" style="raw" />

    </div>

    

    <div id="ja-hl">

      <jdoc:include type="modules" name="user5" style="jamodule" />

    </div>

    

    </div>

  </div>

</div>

<!-- //TOP SPOTLIGHT -->

<?php } ?>



<!-- PATHWAY -->

<div id="ja-pathway" class="wrap">

  <div class="main">

    <div class="inner clearfix">

  

  	<div class="ja-pathway-text">

    <strong>You are here:</strong><jdoc:include type="module" name="breadcrumbs" />

    </div>

  	

  	<?php if ($this->countModules('user4')) { ?>

    <div id="ja-search">

      <jdoc:include type="modules" name="user4" style="raw" />

  	</div>

  	<?php } ?>

  	

  	</div>

  </div>

</div>

<!-- //PATHWAY -->



<div id="ja-container<?php echo $divid; ?>" class="wrap clearfix">

  <div class="main"><div class="inner clearfix">

  
  

 
 
 
 <?php if ( $this->countModules('advert2') ) { ?>

			
<!-- JA NEWS -->

			

			   <jdoc:include type="modules" name="advert2" style="jamodule" />

			
			 <!-- //JA NEWS -->

			<?php } ?>

			
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
  
  
  

  	<!-- CONTENT -->  

    	

  	<div id="ja-mainbody">

			<jdoc:include type="message" />
			
			
			
	<?php if ( $this->countModules('advert1') ) { ?>

			
<!-- JA NEWS -->

			

			   <jdoc:include type="modules" name="advert1" style="jamodule" />

			
			 <!-- //JA NEWS -->

			<?php } ?>

					
			
			



			<div id="ja-current-content" class="clearfix">
			
			
			
		  
 
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			

    		<jdoc:include type="component" />

			</div>

			

			<?php if ( $this->countModules('ja-news') ) { ?>

			<!-- JA NEWS -->

			 <div id="ja-news">

			   <jdoc:include type="modules" name="ja-news" style="jamodule" />

			 </div>

			 <!-- //JA NEWS -->

			<?php } ?>

			

			<?php if ($this->countModules('ja-contentslide') ) { ?>

      <!-- JA CONTENT SLIDER -->

      <div id="ja-cs">

        <div class="clearfix">

          <jdoc:include type="modules" name="ja-contentslide" style="jamodule" />

        </div>

      </div>

      <!-- //JA CONTENT SLIDER -->

      <?php } ?>

  			

  	</div>

  	<!-- //CONTENT -->

  		

  	<?php if ( $ja_left || $ja_right ) { ?>

  	<!-- RIGHT COLUMN -->

  	<div id="ja-colwrap">

  	<div class="ja-innerpad">

  	

  	 	<?php if ($hasSubnav) : ?>

			<div id="ja-subnav" class="moduletable_menu">

				<h3 class="clearfix"><span class="right-bg clearfix"><span class="left-bg">On this page</span></span></h3>

				<div class="ja-boxct-wrap"><div class="ja-box-ct">

				  <?php if ($jamenu) $jamenu->genMenu (1,1);	?>

				</div></div>

			</div>

			<?php endif; ?>

  	

  		<jdoc:include type="modules" name="left" style="jamodule" />

  		<jdoc:include type="modules" name="right" style="jamodule" />

  	</div></div><br />

  	<!-- //RIGHT COLUMN -->

  	<?php } ?>

    

  </div></div>

</div>



	<?php

	$spotlight = array ('user1','user2','user7','user8');

	$botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.5);

	if( $botsl ) {

	?>

	<!-- BOTTOM SPOTLIGHT-->

	<div id="ja-botsl" class="wrap">

	<div class="main clearfix">

	

	  <?php if( $this->countModules('user1') ) {?>

	  <div class="ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;">

			<jdoc:include type="modules" name="user1" style="jamodule" />

	  </div>

	  <?php } ?>

	  

	  <?php if( $this->countModules('user2') ) {?>

	  <div class="ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;">

			<jdoc:include type="modules" name="user2" style="jamodule" />

	  </div>

	  <?php } ?>

	  

	  <?php if( $this->countModules('user7') ) {?>

	  <div class="ja-box<?php echo $botsl['user7']['class']; ?>" style="width: <?php echo $botsl['user7']['width']; ?>;">

			<jdoc:include type="modules" name="user7" style="jamodule" />

	  </div>

	  <?php } ?>

	

	  <?php if( $this->countModules('user8') ) {?>

	  <div class="ja-box<?php echo $botsl['user8']['class']; ?>" style="width: <?php echo $botsl['user8']['width']; ?>;">

			<jdoc:include type="modules" name="user8" style="jamodule" />

	  </div>

	  <?php } ?>



	</div></div>

	<!-- //BOTTOM SPOTLIGHT 2 -->

	<?php } ?>



<!-- FOOTER -->

<div id="ja-footer" class="wrap">

<div class="main clearfix">

	<jdoc:include type="modules" name="user3" />

	<jdoc:include type="modules" name="footer" />

</div>

</div>

<!-- //FOOTER -->



<jdoc:include type="modules" name="debug" />

<script type="text/javascript">

	//addSpanToTitle();

	//jaAddFirstItemToTopmenu();

	//jaRemoveLastContentSeparator();

	//jaRemoveLastTrBg();

	//moveReadmore();

	//addIEHover();

	//slideshowOnWalk ();

	//apply png ie6 main background

</script>

</div>

</body>



</html>

